<form id="add-form" class="form-horizontal" style="position:relative;background: #fff" role="form"
      data-toggle="validator" method="POST" action="">
    <link rel="stylesheet" href="/assets/js/backend/common/flatpickr.min.css">
    <script src="/assets/js/backend/common/flatpickr.js"></script>
    <script src="/assets/js/backend/common/zh.js"></script>
    <div class="panel">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tabs_0" data-toggle="tab" aria-expanded="true">课程项目</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="tabs_0">
                <input type="hidden" id="c-id" name="row[id]" value="NULL" class="form-control" data-rule=""
                       data-tip="ID"/>
                <div class="form-group">
                    <label for="c-name" class="control-label col-xs-12 col-sm-2">项目名称:</label>
                    <div class="col-xs-12 col-sm-8" id="div-name">
                        <input type="text" id="c-name" name="row[name]" value="{$info.coursetablename}" class="form-control"
                               data-tip="项目名称" data-rule="required" placeholder="{$info.coursetablename}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-school_id" class="control-label col-xs-12 col-sm-2">学校:</label>
                    <div class="col-xs-12 col-sm-8" id="div-school_id">
                        <select name="row[school_id]" id="c-school_id" class="form-control">
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-ocation_class" class="control-label col-xs-12 col-sm-2">地点:</label>
                    <div class="col-xs-12 col-sm-8" id="div-ocation_class">
                        <select name="row[ocation_id][]" id="c-ocation_class" class="form-control selects" style="height:200px"
                                multiple>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级:</label>
                    <div class="col-xs-12 col-sm-8" id="div-classes_id">
                        <select name="row[classes_id][]" id="c-classes_id" style="height:200px" class="selects form-control"
                                multiple>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">排除国际假日:</label>
                    <div class="col-xs-12 col-sm-8" id="div-exclint_holidays">
                        <input id="c-switch"  name="row[exclint_holidays]" type="hidden" value="1">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success fa-2x"></i>
                        </a></div>
                </div>

                <div class="form-group">
                    <label for="c-exclint_day" class="control-label col-xs-12 col-sm-2">指定日期排除:</label>
                    <div class="col-xs-12 col-sm-8" id="div-exclint_day">                          <div class="form-inline">
                        <input type="text"  id="c-exclint_day" name="row[exclint_day]" value="<?php echo date('Y-m-d');?>" class="form-control"  data-date-format="YYYY-MM-DD" data-tip="指定日期排除" data-rule=""  />
                    </div>
                    </div>
                </div>

                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade in coursetable_tabs_1" id="tabs_1"></div>
        </div>


    </div>
</form>



